package cn.jiaqiang.chatgpt.data.infrastructure.dao;

import cn.jiaqiang.chatgpt.data.infrastructure.po.OpenAIProductPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @description 商品Dao
 */
@Mapper
public interface IOpenAIProductDao extends BaseMapper<OpenAIProductPO>  {

    /** 通过商品id查询商品 */
    OpenAIProductPO queryProductByProductId(Integer productId);

    /** 查询商品列表 */
    List<OpenAIProductPO> queryProductList();

}
